package com.diancan.modules.order;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.diancan.domain.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Orders> {
    // 查询全部订单
    @Select("select * from orders where user_id=#{userId} order by created desc;")
    public List<Orders> selectAllByUserid(String userId);


}
